package com.mlm.mlmapp.activity;

import org.androidannotations.annotations.AfterViews;
import org.androidannotations.annotations.EActivity;
import org.androidannotations.annotations.ViewById;

import android.content.DialogInterface;
import android.view.View;
import android.view.animation.AlphaAnimation;
import android.view.animation.Animation;
import android.view.animation.Animation.AnimationListener;

import com.mlm.mlmapp.R;
import com.mlm.mlmapp.adapter.view.CustomDialog;
//import com.umeng.socialize.P;

@EActivity(R.layout.mlmsplash)
public class MLMSplashActivity extends BaseActivity {

	@ViewById
	View layout_mlmsplash;

	@AfterViews
	void init() {

//		PlatformConfig.setWeixin("wx967daebe835fbeac",
//				"5bb696d9ccd75a38c8a0bfe0675559b3");
//		// 微信 appid appsecret
//		PlatformConfig.setSinaWeibo("3921700954",
//				"04b48b094faeb16683c32669824ebdad");
//		// 新浪微博 appkey appsecret
		AlphaAnimation aa = new AlphaAnimation(0.5f, 1.0f);
		aa.setDuration(2000);
		layout_mlmsplash.startAnimation(aa);
		aa.setAnimationListener(new AnimationListener() {
			@Override
			public void onAnimationEnd(Animation arg0) {
				MainActivity_.intent(MLMSplashActivity.this).start();
				MLMSplashActivity.this.finish();
			}

			@Override
			public void onAnimationRepeat(Animation animation) {
			}

			@Override
			public void onAnimationStart(Animation animation) {
			}
		});

	}

}
